<?php
/**
 * Created by PhpStorm.
 * User: work
 * Date: 18-8-11
 * Time: 下午3:00
 */

namespace PddWechat\Models\Admin\Service;


use Dai\Framework\Base\BaseSessionInfo;

class Index
{
    /**
     * @param $basePageInfo
     */
    public function execute($basePageInfo) {
        /** @var BaseSessionInfo $sessionData */
        $sessionData = $basePageInfo->sessionInfo;

        if( $sessionData->adminLevel !== 10) {
            header("/mall/index");
            exit;
        }
    }
}